Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools oft miss.
@exodus/basic-utils
Advanced tools
Basic lightweight lib with common utility classes and methods.
[![npm][npm-image]][npm-url]] [npm-image]: https://img.shields.io/npm/v/@exodus/basic-utils.svg?style=flat-square [npm-url]: https://www.npmjs.com/package/@exodus/basic-utils
yarn add @exodus/basic-utils
import { SynchronizedTime } from '@exodus/basic-utils'
console.log(SynchronizedTime.now())
import { cleanInput } from '@exodus/basic-utils'
cleanInput('1.2abc@!#') // returns 1.2
Flatten an object to an array of [...path, leafValue]
arrays.
import { flattenToPaths } from '@exodus/basic-utils'
flattenToPaths({
harry: {
wand: 'holly',
},
grindie: {
wand: 'yew',
},
voldie: {
wand: 'yew',
},
})
// [
// ['harry', 'wand', 'holly'],
// ['grindie', 'wand', 'yew'],
// ['voldie', 'wand', 'yew'],
// ]
The following functions work like their lodash counterparts, with some caveats:
pick(users, ['name', 'age'])
but NOT pick(users, 'name')
. Please see the tests before you use them.Before using a function, check its unit tests to make sure you're using the API correctly.
import {
pick,
pickBy,
omit,
mapKeys,
mapValues,
keyBy,
orderBy,
isNil,
isObjectLike,
isPlainObject,
difference,
intersection,
partition,
set,
} from '@exodus/basic-utils'
See ./src/async.js and ./src/p-debounce.js for more details.
mapValuesAsync
, filterAsync
, partitionAsync
are the async counterparts of mapValues
, filter
, partition
respectively.pDebounce
: p-debounce, copied from the original temporarily to avoid having to ship this as ESM.FAQs
Basic lightweight lib with common utility classes and methods.
We found that @exodus/basic-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools oft miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.